package com.xiaomi.no_auto.controller;

import com.xiaomi.no_auto.service.UserService;

public class UserController {
    //定义属性
    private UserService userService;
    //定义set方法
    public void setUserService(UserService userService) {
        this.userService = userService;
    }
    public void login() {
        System.out.println("controller层的login方法");
        userService.login();
    }
}
